package com.fengyunhe.manager;

/**
 * 功能：应用级别的错误
 * 作者： yangyan
 * 时间： 2014/11/11 .
 */
public class AppException extends RuntimeException {

    private int errorCode;

    public AppException(int errorCode) {
        this.errorCode = errorCode;
    }

    public AppException(String message) {
        super(message);
    }

    public AppException(String message, Throwable cause) {
        super(message, cause);
    }


    /**
     * 错误代码
     *
     * @return
     */
    public int getErrorCode() {
        return errorCode;
    }
}
